import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'

/**
 * 这个下面就是我们自定义的组件
 */
import Tenant from "./views/nav1/Tenant.vue";
import user from "./views/nav1/user";

let routes = [
    {
        path: '/',
        component: Home,
        name: '管理',
        iconCls: 'el-icon-message',//图标样式class
        children: [
            { path: '/Tenant', component: Tenant, name: '用户管理' },
            { path: '/user', component: user, name: '员工管理' },
        ]
    },
    {
        //前端访问路径
        path: '/login',
        //对应的组件或者叫模板
        component: Login,
        //模板展示的名字
        name: 'Login',
        //hidden 隐藏
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    //{ path: '/main', component: Main },
/*
 // 左边的菜单栏
 {
        path: '/',
        component: Home,
        name: '导航一',
        iconCls: 'el-icon-message',//图标样式class
        children: [
            { path: '/main', component: Main, name: '主页', hidden: true },
        ]
    },*/
    {
        path: '*',
        hidden: true,
        redirect: { path: '/404' }
    }
];

export default routes;